/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	// public static void main (String[] args) throws java.lang.Exception
	// {
	// 	String str = "hjksdAchEcIsUOi";
	// 	// your code goes here
	// 	int result = totalConsonantsIterative(str);
	// 	System.out.println(result);
		
	// 	int recResult = totalConsonantRecursive(str,str.length());
	// 	System.out.println(recResult);
	// }
	
	public  boolean isConsonant(char ch){
		ch = Character.toUpperCase(ch);
		
		return !(ch == 'A'|| ch == 'E'|| ch == 'I'|| ch =='O'||
			ch == 'U') && ch >= 65 && ch <= 90;
	}
	 int totalConsonantsIterative(String str){
		int numConsonants = 0;
		for(int i =0; i <str.length(); i++){
			if(isConsonant(str.charAt(i))){
				++numConsonants;
			}
		}	
		return numConsonants;
	}
	
	 int totalConsonantRecursive(String str, int strLengthToTest){
		if ( strLengthToTest < 1 ){
			return 0;
		}
		return totalConsonantRecursive(str, strLengthToTest-1) +
			(isConsonant(str.charAt(strLengthToTest-1))?1:0);
	}
	
}